package src.com.doit.demo;

/*
    类: 是对现实事物的抽象描述  现实实物都具备属性和行为
        类的成员变量 描述实物的属性
        类的成员方法 描述事物的行为
*/
public class Person {
    String name;
    int age;

    public void eat() {
        System.out.println("吃饭");
    }

    public void sleep() {
        System.out.println("睡觉");
    }

    public void hitbeanbean() {
        System.out.println("打豆豆");
    }

    public static class test03 {
        public static void main(String[] args) {
            Cat mao = new Cat("Tom",5,3,"灰蓝相间");
            mao.run();
            mao.call();
            mao.show();

            Cat mao2 = new Cat("Jerry",4.5,3,"棕色");
            mao2.run();
            mao2.call();
            mao2.show();
            mao2.set("yunayuan",65.5,18,"白色");
            mao2.show();
        }
    }
}
